/*
 * @Author: czy
 * @Date: 2021-04-23 16:00:20
 * @LastEditTime: 2021-05-04 09:49:54
 */
#include "i8253.h"
#include "i8259A.h"
#include "irqs.h"
#include "wallClock.h"
#include "mystdio.h"
#include "mystdlib.h"
#include "mystring.h"
#include "mytime.h"

extern void myMain(void);

/**
 * @description: Initialization.
 */
static void init(void)
{
	init8259A();
	init8253();
	init_time();
	setWallClockFormat("%Y/%m/%d %H:%M:%S");
	setWallClockRefresh(1000);
	enable_interrupt();
}

void osStart(void)
{
	clear();
	init();
	myMain();
	myExit(0);
}